.class Lcom/netease/netstat/statistics/StatisticsService$2;
.super Ljava/lang/Object;
.source "StatisticsService.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/netstat/statistics/StatisticsService;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/netstat/statistics/StatisticsService;


# direct methods
.method constructor <init>(Lcom/netease/netstat/statistics/StatisticsService;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/netstat/statistics/StatisticsService$2;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    .line 106
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    .line 110
    iget-object v2, p0, Lcom/netease/netstat/statistics/StatisticsService$2;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    new-instance v3, Lcom/netease/netstat/statistics/DownLinkThroughoutTest;

    iget-object v4, p0, Lcom/netease/netstat/statistics/StatisticsService$2;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v4}, Lcom/netease/netstat/statistics/StatisticsService;->access$0(Lcom/netease/netstat/statistics/StatisticsService;)Landroid/telephony/TelephonyManager;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/netstat/statistics/StatisticsService$2;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v5}, Lcom/netease/netstat/statistics/StatisticsService;->access$1(Lcom/netease/netstat/statistics/StatisticsService;)Landroid/net/ConnectivityManager;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/netstat/statistics/StatisticsService$2;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v6}, Lcom/netease/netstat/statistics/StatisticsService;->access$2(Lcom/netease/netstat/statistics/StatisticsService;)Lcom/netease/netstat/utils/FileService;

    move-result-object v6

    invoke-direct {v3, v4, v5, v6}, Lcom/netease/netstat/statistics/DownLinkThroughoutTest;-><init>(Landroid/telephony/TelephonyManager;Landroid/net/ConnectivityManager;Lcom/netease/netstat/utils/FileService;)V

    invoke-static {v2, v3}, Lcom/netease/netstat/statistics/StatisticsService;->access$3(Lcom/netease/netstat/statistics/StatisticsService;Lcom/netease/netstat/statistics/DownLinkThroughoutTest;)V

    .line 111
    iget-object v2, p0, Lcom/netease/netstat/statistics/StatisticsService$2;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v2}, Lcom/netease/netstat/statistics/StatisticsService;->access$4(Lcom/netease/netstat/statistics/StatisticsService;)Lcom/netease/netstat/statistics/DownLinkThroughoutTest;

    move-result-object v2

    invoke-virtual {v2}, Lcom/netease/netstat/statistics/DownLinkThroughoutTest;->startserver()V

    .line 112
    iget-object v2, p0, Lcom/netease/netstat/statistics/StatisticsService$2;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v2}, Lcom/netease/netstat/statistics/StatisticsService;->access$4(Lcom/netease/netstat/statistics/StatisticsService;)Lcom/netease/netstat/statistics/DownLinkThroughoutTest;

    move-result-object v2

    invoke-virtual {v2}, Lcom/netease/netstat/statistics/DownLinkThroughoutTest;->getserverinfo()V

    .line 113
    const/4 v1, 0x1

    .line 114
    .local v1, i:I
    :cond_0
    :goto_0
    sget-object v2, Lcom/netease/netstat/utils/Contanst;->statistic:Lcom/netease/netstat/utils/Statistic;

    invoke-virtual {v2}, Lcom/netease/netstat/utils/Statistic;->getGlobalip()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    const/4 v3, 0x7

    if-le v2, v3, :cond_1

    .line 124
    :goto_1
    return-void

    .line 116
    :cond_1
    const-wide/16 v2, 0x3e8

    :try_start_0
    invoke-static {v2, v3}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 117
    add-int/lit8 v1, v1, 0x1

    .line 118
    const/16 v2, 0xa

    if-le v1, v2, :cond_0

    goto :goto_1

    .line 120
    :catch_0
    move-exception v0

    .line 121
    .local v0, e:Ljava/lang/InterruptedException;
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_0
.end method
